/*

BlackRabbit - OpenSource IDE.
@author Edward Sarkisyan (edward.sarkisyan@gmail.com)
Use LGPL (http://www.gnu.org/copyleft/lesser.html)

*/

#ifndef PROJECTITEM_H
#define PROJECTITEM_H
#include "../languageextentioninterface.h"
#include <QTreeWidgetItem>
#include <QString>
#include <QFile>

class ProjectItem
{
public:
    ProjectItem(QTabWidget* tabContainer = 0);
    virtual ~ProjectItem();
    void setTopLevelitem(QTreeWidgetItem* topLevel = 0);
    QTreeWidgetItem* topLevelItem();
    QString fileName();
    QString name();
    Language* language();
    void setLanguage(Language* s_language);
    QString description();
    void setDescription(QString s_description);
    QString author();
    void setAuthor(QString s_author);
    QString CSV();
    QString version();
    void setVersion(QString s_version);
    void addFile(QString s_newFileName);
    void removeFile(QString s_fileName);
    bool openFile(QString path);
private:
    QTabWidget *m_tabsContainer;
    QTreeWidgetItem* m_topLevelItem;
    QStringList m_files;
    QString m_fileName;
    QString m_name;
    Language* m_language;
    QString m_description;
    QString m_author;
    QString m_CSV;
    QString m_version;
    QFile projectFile;

};

#endif // PROJECTITEM_H
